package bookController

import (
	"bookStore/mapper/bookMapper"
	"bookStore/model"
	"bookStore/util/contextUtils"
	"github.com/gin-gonic/gin"
)

func Put(context *gin.Context) {
	var book model.Book
	context.BindJSON(&book)
	bookMapper.CreateBook(&book)
	contextUtils.OkJSON(context, book)
}
